home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F2361_SlideShow.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  8KB  |  181 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Slide Show action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">SlideShow Action 1.0</font>
  12.             <p>© 1999, Adobe Systems Incorporated<br>
  13.             All rights reserved.</p>
  14.             <p>Script by Cédric Ménard</p>
  15.             <hr>
  16.         </center>
  17.         <csactionclass name="SlideShow" function="CSSlideShow" nsversion="3" ieversion="4">
  18.         <csactionparam name="image" type="GLActionImageParam"></csactionparam>
  19.         <csactionparam name="nombre" type="GLActionNumParam"></csactionparam>
  20.         <csactionparam name="inverse" type="GLActionBoolParam"></csactionparam>
  21.         <csactionparam name="isloop" type="GLActionBoolParam"></csactionparam>
  22.         <csactionparam name="palin" type="GLActionBoolParam"></csactionparam>
  23.         </csactionclass>
  24.         <p>IE Stuff
  25.         <script language="JavaScript1.2" src="../GlobalScripts/IE.scpt"></script>
  26.         </p>
  27.         <p>CSSlideShow  
  28.         <script language="JavaScript1.2"><!--
  29. // Script copyright 1999, Adobe Systems Incorporated. All rights reserved.
  30.  
  31. SSnumimg=1; SSsens2=-1;SSsens3=-1
  32. function CSSlideShow(action) 
  33. {
  34. SSmax=action[2]
  35. SSimgNom=action[1]
  36. SSloop=action[4]
  37. SSsens=action[3] 
  38. SSpalin=action[5]
  39. var SSimg = null;
  40.     if (document.images) {
  41.         if (!IsIE()) SSimg = CSFindElement(SSimgNom,0);
  42.         else SSimg = document.images[SSimgNom];
  43. SSstr=SSimg.src
  44. SSn=SSstr.length
  45. SSp=SSn-6
  46. SSpstr=SSstr.substring(0,SSp)
  47. SSnimg=SSstr.substring(SSp,SSp+2)
  48. SSformat=SSstr.substring(SSp+2,SSn)
  49. if (SSformat==".jpg" || SSformat==".JPG" || SSformat==".gif" || SSformat==".GIF")
  50. {}
  51. else
  52. {
  53.  alert("Image extension must be .jpg or .gif (case sensitive). Images must be numbered 01, 02 ...")
  54. }
  55. slide(SSmax,SSformat,SSpstr,SSnimg,SSimgNom,SSloop,SSpalin)
  56. }
  57. }
  58. function slide(SSmax,SSformat,SSpstr,SSnimg,SSimgNom,SSloop,SSpalin)
  59. {
  60. if (SSsens2==true) {SSsens=true}
  61. if (SSsens2==false) {SSsens=false}
  62. if (SSsens==true) 
  63. {
  64. SSsuite=SSnumimg-1
  65.     if (SSnumimg>SSmax)SSsuite=SSmax
  66.     if (SSnumimg<=1 & SSloop==true & SSpalin!=true) { SSsuite=SSmax }
  67.     if (SSnumimg<=1 & SSloop==true & SSpalin==true) { 
  68.         if (SSsens2==-1 & SSsens3==-1) {SSsuite=SSmax;SSsens3=1} else { SSsuite=SSnumimg+1; SSsens2=false }}
  69.     if (SSnumimg<=1 & SSloop!=true & SSpalin!=true) {
  70.         if  (SSsens2==-1 & SSsens3==-1) { SSsuite=SSmax;SSsens3=1 } else {SSsuite=SSnumimg; SSfini()}}
  71. }
  72. else
  73. {
  74. SSmax=SSmax-1
  75. SSsuite=SSnumimg+1
  76.     if (SSnumimg>SSmax & SSloop==true & SSpalin!=true) { SSsuite=1}
  77.     if (SSnumimg>SSmax & SSloop==true & SSpalin==true) {SSsuite=SSnumimg-1; SSsens2=true }
  78.     if (SSnumimg>SSmax & SSloop!=true &  SSpalin!=true) { SSsuite=SSnumimg;SSfini() }
  79.     if (SSnumimg<1) SSsuite=1
  80. }
  81. SSnumimg=SSsuite
  82. if (SSsuite<10) {
  83.     SSaller="0"+SSsuite
  84.     }
  85.     else SSaller=SSsuite
  86. SSsource=SSpstr+SSaller+SSformat
  87. var SSimg = null;
  88.     if (document.images) {
  89.         if (!IsIE()) SSimg = CSFindElement(SSimgNom,0);
  90.         else SSimg = document.images[SSimgNom];
  91.         if (SSimg) SSimg.src = SSsource;
  92.     }
  93. }
  94. function SSfini() {
  95. }
  96. // -->
  97.         </script>
  98.         </p>
  99.  
  100.         <table cool width="221" height="255" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  101.             <tr height="6">
  102.                 <td width="4" height="254" rowspan="10"><spacer type="block" width="4" height="254"></td>
  103.                 <td width="76" height="9" colspan="2" rowspan="2"><spacer type="block" width="76" height="9"></td>
  104.                 <td width="140" height="6" colspan="2"><spacer type="block" width="140" height="6"></td>
  105.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  106.             </tr>
  107.             <tr height="3">
  108.                 <td width="140" height="24" colspan="2" rowspan="2" valign="top" align="left" xpos="80">
  109.                     <csactioncntrl name="image" x="80" y="6" width="136" height="18" alignx="scale" aligny="top">
  110.                 </td>
  111.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  112.             </tr>
  113.             <tr height="21">
  114.                 <td width="76" height="21" colspan="2" valign="top" align="left" xpos="4">
  115.                     <csactioncntrl type="InfoText" value="Base Image" x="4" y="9" width="69" height="15" alignx="left" aligny="top">
  116.                 </td>
  117.                 <td width="1" height="21"><spacer type="block" width="1" height="21"></td>
  118.             </tr>
  119.             <tr height="1">
  120.                 <td width="96" height="1" colspan="3"><spacer type="block" width="96" height="1"></td>
  121.                 <td width="120" height="27" rowspan="2" valign="top" align="left" xpos="100">
  122.                     <csactioncntrl name="nombre" x="100" y="30" width="28" height="17" alignx="left" aligny="top">
  123.                 </td>
  124.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  125.             </tr>
  126.             <tr height="26">
  127.                 <td width="96" height="26" colspan="3" valign="top" align="left" xpos="4">
  128.                     <csactioncntrl type="InfoText" value="Number of images" x="4" y="31" width="91" height="15" alignx="left" aligny="top">
  129.                 </td>
  130.                 <td width="1" height="26"><spacer type="block" width="1" height="26"></td>
  131.             </tr>
  132.             <tr height="22">
  133.                 <td width="26" height="22" valign="top" align="left" xpos="4">
  134.                     <csactioncntrl name="isloop" x="4" y="57" width="20" height="17" alignx="left" aligny="top">
  135.                 </td>
  136.                 <td width="190" height="22" colspan="3" valign="top" align="left" xpos="30">
  137.                     <csactioncntrl type="InfoText" value="Loop" x="30" y="57" width="74" height="15" alignx="left" aligny="top">
  138.                 </td>
  139.                 <td width="1" height="22"><spacer type="block" width="1" height="22"></td>
  140.             </tr>
  141.             <tr height="2">
  142.                 <td width="26" height="2"><spacer type="block" width="26" height="2"></td>
  143.                 <td width="190" height="19" colspan="3" rowspan="2" valign="top" align="left" xpos="30">
  144.                     <csactioncntrl type="InfoText" value="Palindrome" x="30" y="79" width="73" height="16" alignx="left" aligny="top">
  145.                 </td>
  146.                 <td width="1" height="2"><spacer type="block" width="1" height="2"></td>
  147.             </tr>
  148.             <tr height="17">
  149.                 <td width="26" height="17" valign="top" align="left" xpos="4">
  150.                     <csactioncntrl name="palin" x="4" y="80" width="20" height="16" alignx="left" aligny="top">
  151.                 </td>
  152.                 <td width="1" height="17"><spacer type="block" width="1" height="17"></td>
  153.             </tr>
  154.             <tr height="25">
  155.                 <td width="26" height="25" valign="top" align="left" xpos="4">
  156.                     <csactioncntrl name="inverse" x="4" y="98" width="20" height="17" alignx="left" aligny="top">
  157.                 </td>
  158.                 <td width="190" height="25" colspan="3" valign="top" align="left" xpos="30">
  159.                     <csactioncntrl type="InfoText" value="Play backwards" x="30" y="98" width="75" height="16" alignx="left" aligny="top">
  160.                 </td>
  161.                 <td width="1" height="25"><spacer type="block" width="1" height="25"></td>
  162.             </tr>
  163.             <tr height="131">
  164.                 <td width="216" height="131" colspan="4" valign="top" align="left" xpos="4">
  165.                     <csactioncntrl type="InfoText" value="Images must be numbered 01, 02, 03, etc, with a .gif or .jpg extension. All images in the slide show must be located in the same folder as the base image." x="4" y="123" width="212" height="128" alignx="scale" aligny="scale">
  166.                 </td>
  167.                 <td width="1" height="131"><spacer type="block" width="1" height="131"></td>
  168.             </tr>
  169.             <tr height="1" cntrlrow>
  170.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  171.                 <td width="26" height="1"><spacer type="block" width="26" height="1"></td>
  172.                 <td width="50" height="1"><spacer type="block" width="50" height="1"></td>
  173.                 <td width="20" height="1"><spacer type="block" width="20" height="1"></td>
  174.                 <td width="120" height="1"><spacer type="block" width="120" height="1"></td>
  175.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  176.             </tr>
  177.         </table>
  178.     </body>
  179.  
  180. </html>
  181.